package com.tudouji.project.flow.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 流程任务对象 flow_task
 * 
 * @author tudouji
 * @date 2022-06-20
 */
@Data
public class FlowTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 处理人姓名列表 */
    @Excel(name = "处理人姓名列表")
    private String reciever;

    /** 关联业务表id */
    @Excel(name = "关联业务表id")
    private Long orderId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /** 处理状态1-未处理，2-已处理 */
    @Excel(name = "处理状态1-未处理，2-已处理")
    private Integer status;

    /** 处理类型 1-通过 2 拒绝 */
    @Excel(name = "处理类型 1-通过 2 拒绝")
    private Integer dealType;

    /** 订单发起人id */
    @Excel(name = "订单发起人id")
    private Long submitterId;

    /** 订单发起人 */
    @Excel(name = "订单发起人")
    private String submitter;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handleTime;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    /** 父节点id，上一节点id */
    @Excel(name = "父节点id，上一节点id")
    private Long fromNodeId;

    /** 当前节点id */
    @Excel(name = "当前节点id")
    private Long currentNodeId;

    /** 下一节点id */
    @Excel(name = "下一节点id")
    private Long nextNodeId;

    /** 处理人id */
    @Excel(name = "处理人id")
    private Long handlerId;

    /** 处理人 */
    @Excel(name = "处理人")
    private String handler;

    /** 抄送通知id */
    @Excel(name = "抄送通知id")
    private Long ccMsgId;

    /** 是否发送OA */
    @Excel(name = "是否发送OA")
    private String isSendOa;

    /** 流程id */
    @Excel(name = "流程id")
    private Long flowid;

    private String branchiIds;

    private Long conditionId;

    private Long recieverId;

    private String fromUser;

    private String toUser;
    private String nodename;
    private String flowname;
}
